package SpringDemo.Repository;

import SpringDemo.model.User;
import org.springframework.beans.factory.config.ConfigurableBeanFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Repository;

@Repository
public class UserRepository {
    
    public User getUser(){
        // 伪代码设置
        User user = new User();
        user.setName("张伟");
        user.setText("中国最good的律师");
        return user;
    }

}
